const tokenKey = "token";

//1.设置本地存储的token
export function setToken(token){
    return localStorage.setItem(tokenKey,token)
}

//2.获取本地存储的token
export function getToken(){
    return localStorage.getItem(tokenKey) || "";
}

//3.删除本地存储的token
export function removeToken(){
    return localStorage.removeItem(tokenKey);
}